package com.rbh.risk.util;


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author M
 */
public class Constants {
    //~ Static fields/initializers =============================================

    /** The name of the ResourceBundle used in this application */
    public static final String BUNDLE_KEY = "ApplicationResources";
    /** The encryption algorithm key to be used for passwords */
    public static final String ENC_ALGORITHM = "algorithm";
    /** A flag to indicate if passwords should be encrypted */
    public static final String ENCRYPT_PASSWORD = "encryptPassword";
    /** File separator from System properties */
    public static final String FILE_SEP = System.getProperty("file.separator");
    /** User home from System properties */
    public static final String USER_HOME = System.getProperty("user.home") + FILE_SEP;
    /** The name of the configuration hashmap stored in application scope. */
    public static final String CONFIG = "appConfig";
    /** 
     * Session scope attribute that holds the locale set by the user. By setting this key
     * to the same one that Struts uses, we get synchronization in Struts w/o having
     * to do extra work or have two session-level variables.
     */
    public static final String PREFERRED_LOCALE_KEY = "org.apache.struts.action.LOCALE";
    /**
     * The request scope attribute under which an editable user form is stored
     */
    public static final String USER_KEY = "userForm";
    /**
     * The request scope attribute that holds the user list
     */
    public static final String USER_LIST = "userList";
    /**
     * The request scope attribute for indicating a newly-registered user
     */
    public static final String REGISTERED = "registered";
    /**
     * The name of the Administrator role, as specified in web.xml
     */
    public static final String ADMIN_ROLE = "admin";
    /**
     * The name of the User role, as specified in web.xml
     */
    public static final String USER_ROLE = "user";
    /**
     * The name of the user's role list, a request-scoped attribute
     * when adding/editing a user.
     */
    public static final String USER_ROLES = "userRoles";
    /**
     * The name of the available roles list, a request-scoped attribute
     * when adding/editing a user.
     */
    public static final String AVAILABLE_ROLES = "availableRoles";
    /**
     * The name of the CSS Theme setting.
     */
    public static final String CSS_THEME = "csstheme";
    
    public static final String GLOBAL_FILTER = "globalFilter";
    
    public static final Integer TIMEOUT = 5000; //(30 * 60 * 1000); // 30 Minute
    
    public static final boolean ENABLED = true;
    public static final boolean DISABLE = false;
    
    public static final String ROLE_GUEST = "Guest";
    
    public static final boolean haveChild = true;
    public static final boolean noHaveChild = false;
    
    public static final Byte WORKGROUP_FOR_COUNT = 1;
    
    public static final String ACCOUNT = "ACCOUNT";
    
    /*
     * Privilege ($)
     */
    public static final String $_FRONTEND = "frontend";
    public static final String $_BACKEND = "backend";
    public static final String $_REPORT = "report";
    public static final String $_YOURSELF = "yourself";
    public static final String $_REVIEW_LV3 = "review_lv3";
    public static final String $_REVIEW_LV2 = "review_lv2";
    public static final String $_REVIEW_LV1 = "review_lv1";
    
    /* Path */
    public static final String PATH_ADD = "add";
    public static final String PATH_EDIT = "edit";
    public static final String PATH_ERROR = "error";
    public static final String PATH_REPORT = "report";
    public static final String PATH_SUMMARY = "summary";
}
